package com.csu.device.dao;

import com.csu.device.entity.Device;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface HardWareDao {

    List<Map<String,Object>> findHrd();

    /**
     * redis 加载所有硬件设备
     * @param param
     * @return
     */
    List<Device>  findAllDeviceToRedis(Map<String,String> param);

    /**
     * 获取所有设备
     * @return
     */
    List<Map<String,Object>> findAllHardware();

    /**
     * 查询所有gps设备
     * @return
     */
    List<String> findAllGps();


    public List<Map<String,String>> getUserGps(Map<String,Object> map);
    public List<Map<String,String>> gpsHis(Map<String,Object> map);

    public List<Map<String,String>> getUserBedmat(Map<String,Object> map);
    public List<Map<String,Object>> bedmatHis(Map<String,Object> map);
}
